class Message < ActiveRecord::Base
  belongs_to :project
  belongs_to :author, :class_name => "User", :foreign_key => "author_id"
  belongs_to :milestone
  
  has_many :comments, :as => :commentable
end